package com.example.module.flipper;


import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;

public class DisplayNextView implements AnimationListener {
	private boolean mCurrentView;
	private View prevView;
	private View nextView;

	public DisplayNextView(boolean currentView, View prevView, View nextView) {
		mCurrentView = currentView;
		this.prevView = prevView;
		this.nextView = nextView;
	}
	
	public void onAnimationEnd(Animation arg0) {
		prevView.post(new SwapViews(mCurrentView, prevView, nextView));
	}

	public void onAnimationRepeat(Animation arg0) {
		// TODO Auto-generated method stub

	}

	public void onAnimationStart(Animation arg0) {
		// TODO Auto-generated method stub

	}
}
